package PSS;

/*
public class Cat {
    String name;
    int agr;
    float weight;
    public void eat(){
        System.out.println(name+"正在吃饭");
    }
    public void sleep(){
        System.out.println(name+"正在睡觉");
    }
    void mew(){
        System.out.println(name+"正在喵喵叫");
    }
}
*/
public class Cat extends Animal{
    public Cat (String name,int age){
        super(name,age);
    }
    @Override
    public void eat(){
        System.out.printf(name+"吃鱼");
    }

    @Override
    public void sleep() {
        System.out.println(name+"趴着睡");
    }

    void mew(){
        System.out.println(name+"正在喵喵叫");
    }
}
